package com.ggb.reactive.domain.dto

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import java.time.Instant
import java.time.LocalDateTime

@Data
@Schema(title="订单分页查询 OrdersPageQueryDTO")
data class OrdersPageQueryDTO(
    @Schema(description = "页码")
    var page: Int = 1,
    @Schema(description = "页数")
    var pageSize: Int = 10,
    @Schema(description = "订单号")
    var number:String?=null,
    @Schema(description = "电话")
    var phone:String?=null,
    @Schema(description = "状态")
    var status:Int?=null,
    @Schema(description = "用户id")
    var userId:Long?=null,


    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    var beginTime: Instant? = null,

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    var endTime: Instant? = null,

    )
